/**
 * @filename:AutoPageSpanServiceImpl Course
 * @project constract  V1.0
 * Copyright(c) 2018  Co. Ltd. 
 * All right reserved. 
 */
package com.znufe.exam.service.impl;

import java.util.List;

import com.znufe.exam.repository.AutoPageSpanMapper;
import com.znufe.exam.viewmodel.student.autopage.AutoPageRequestVm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znufe.exam.domain.AutoPageSpan;
import com.znufe.exam.service.AutoPageSpanService;

/**   
 *  
 * @Description:  自动翻页设置表——SERVICEIMPL
 * @Author:          
 * @CreateDate:   Course
 * @Version:      V1.0
 *    
 */
@Service
public class AutoPageSpanServiceImpl implements AutoPageSpanService {
	
	@Autowired
	public AutoPageSpanMapper autoPageSpanMapper;
	
	//查询对象
	@Override
	public AutoPageSpan selectByPrimaryKey(Integer id) {
		return autoPageSpanMapper.selectByPrimaryKey(id);
	}
	
	//删除对象
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return autoPageSpanMapper.deleteByPrimaryKey(id);
	}
	
	//添加对象
	@Override
	public int insertSelective(AutoPageSpan autoPageSpan) {
		return autoPageSpanMapper.insertSelective(autoPageSpan);
	}
	
	//修改对象
	@Override
	public int updateByPrimaryKeySelective(AutoPageSpan autoPageSpan) {
		return autoPageSpanMapper.updateByPrimaryKeySelective(autoPageSpan);
	}
	
	//查询集合
	@Override
	public List<AutoPageSpan> queryAutoPageSpanList(AutoPageSpan autoPageSpan) {
		return autoPageSpanMapper.queryAutoPageSpanList(autoPageSpan);
	}

    @Override
    public AutoPageSpan selcetByIds(AutoPageRequestVm autoPageRequestVm) {
        return autoPageSpanMapper.selcetByIds(autoPageRequestVm);
    }

    @Override
    public AutoPageSpan selectByClassCoursePaperId(Integer classId, Integer courseId, Integer examPaperId) {
        return autoPageSpanMapper.selectByClassCoursePaperId(classId,courseId,examPaperId);
    }
}